﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Cursos.aspx.cs" Inherits="Cursos_Cursos" Title="Untitled Page" %>

<%@ Register Src="../../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc2" %>

<%@ Register Src="../../Controles/Turno.ascx" TagName="Turno" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">
<fieldset><Table><tr style="display:none;"><td class="input-caption" style="width: 100px">IdCurso</td><td><asp:TextBox ID="txtIdCurso" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption" style="width: 100px">
    Nombre deCurso</td><td><asp:TextBox ID="txtCursoDescrip" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption" style="width: 100px">Turno</td><td>
    <uc2:CboGeneric ID="cboTurno" runat="server" NameDescript="Detalle" NameId="IdTurno" SourceData="tipoturno" TipoOrigen="Tabla" />
</td></tr>
<tr><td class="input-caption" style="width: 100px; height: 37px;">
    Sede</td><td style="height: 37px">
    <uc2:CboGeneric ID="cboSede" runat="server" NameDescript="DescripcionSede" NameId="IdSede" SourceData="sedes " TipoOrigen="Tabla" />
</td></tr>
<tr><td class="input-caption" style="width: 100px">
    Año</td><td>
    <asp:DropDownList ID="cboAnio" runat="server">
        <asp:ListItem>2008</asp:ListItem>
        <asp:ListItem>2009</asp:ListItem>
    </asp:DropDownList></td></tr>
<tr><td colspan='2'></td></tr><tr><td colspan='2' class='barButtons'>
<asp:Button ID='cmdAccion' runat='server' Text='Aceptar'  CssClass='input-button'  OnClick="cmdAccion_Click" />
<asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td></tr>
</Table></fieldset>

    <asp:GridView ID="GridView1" runat="server" 
        AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar." 
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
        OnRowDeleting="GridView1_RowDeleting" 
        OnPageIndexChanged="GridView1_PageIndexChanged" 
        OnPageIndexChanging="GridView1_PageIndexChanging" 
        >
        <Columns>
            <asp:BoundField DataField="IdCurso" HeaderText="IdCurso" ReadOnly="True" SortExpression="IdCurso" />
            <asp:BoundField DataField="CursoDescrip" HeaderText="Nombre Curso" SortExpression="CursoDescrip" />
            <asp:BoundField DataField="Detalle" HeaderText="Turno" SortExpression="Turno" />
            <asp:BoundField DataField="descripcionsede" HeaderText="Sede" SortExpression="descripcionsede" />
            
              <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <div id="noprint">
                                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                                        ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
            <asp:TemplateField>
            <ItemTemplate>
                <div id="noprint">
                    <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                        ImageUrl="~/Images/delete.gif" Text="Delete" />
                </div>
            </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
    </asp:GridView>
</asp:Content>

